<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{if isset($SEO['title']) && !empty($SEO['title'])}{$SEO['title']}{/if}{$SEO['site_title']}</title>
<meta name="keywords" content="{$SEO['keyword']}">
<meta name="description" content="{$SEO['description']}">
<link href="{THEME_STYLE_PATH}style/css/default_new.css" type="text/css" rel="stylesheet" />
<script src="{THEME_STYLE_PATH}style/js/jquery.min.js"></script>
<script src="{THEME_STYLE_PATH}style/js/core.js"></script>
<link href="{THEME_STYLE_PATH}style/css/percenter1.css" type="text/css" rel="stylesheet" />
<!--[if IE 6]>
<script src="/js/DD_belatedPNG.js"></script>
<script>
  DD_belatedPNG.fix('*');
</script>
<![endif]-->
<!--[if IE 6]>
<style type="text/css">
    html{overflow:hidden;}
    body{height:100%;overflow:auto;}
</style>
<![endif]-->
</head>
<script type="text/javascript">
	$(document).ready(function(){
		$('.qbyd').live('click',function(){
			$.ajax({
				type: "POST",
				url: "index.php?m=Member&c=Profile&a=setread",
				dataType: "json",
				data : {act:'allRead'},
				success: function(strJson){
					var data = strJson.rs;
					if(data ==1){
						popup.prompt("全部标记已读成功");
						location.href= '<?php echo $_GET['__URL__']?>';
					}else{
						popup.prompt("设为已读失败，请刷新页面重新尝试！");
					}
				}
			});
		});

		$('.qbsc').live('click',function(){
			$.ajax({
				type: "POST",
				url: "index.php?m=Member&c=Profile&a=setread",
				dataType: "json",
				data : {act:'allRemove'},
				success: function(strJson){
					var data = strJson.rs;
					if(data == 1){
						popup.prompt("删除已读成功");
						location.href= '<?php echo $_GET['__URL__']?>';
					}else{
						popup.prompt("删除已读失败，请刷新页面重新尝试！");
					}
				}
			});
		});
	});
</script>
<body>

{include template('header','common')}
	<div id="Mainbox">
		<!--插入侧边栏-->
{include template('sidebar_login','common')}
		<!--插入侧边栏-->
		<!--顶端公告-->
		{include template('top_advance','common')}
		<!-- 左侧 -->
{include template('member_left','common')}
		<!--右侧-->
		<div class="percenter_right">
			<div class="aboutper_znx2">
				<p class="a1">我的站内信<label><a href="javascript:void(0);" class="qbyd">全部标为已读</a>&nbsp;&nbsp;&nbsp;<a href="javascript:void(0);" class="qbsc">删除全部已读信息</a></label></p><!--15条信息-->
					<ul>
						{loop $message_lists $v}
						<li class="a1">{if $v[status] == 1} <img src="{THEME_STYLE_PATH}style/images/index/mailico_on.gif" /> {else} <img src="{THEME_STYLE_PATH}style/images/index/mailico.gif" />{/if}<a href="{U('Member/Profile/notice_content',array('id'=>$v[messageid]))}">{$v[subject]}</a></li><!--未读-->
						<li class="a2">{if $v[issystem] == 1}系统消息{/if}</li>
						<li class="a3"><?php echo date('Y-m-d',$v[message_time]);?></li>
						{/loop}
					</ul>
				<!--翻页模板-->
				<div class="pageup">{$pages}</div>
				<!--翻页模板-->
			</div>
		</div>
		<!--右侧-->
		<div class="clear"></div>
	</div>
	<!--主体-->
{include template('footer','common')}
</body>
</html>
